package com.css.fxfzypg.modules.baseData.entity;
import cn.afterturn.easypoi.excel.annotation.Excel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * data_faultage
 * @author 
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class FaultageEntity implements Serializable {
    private String fauId;//主键ID

    @Excel(name = "断层编号")
    private String fauNumber;
    @Excel(name = "断层名称")
    private String fauName;
    @Excel(name = "断层走向[度]")
    private Integer fauDirection;

    private Date fauCreatetime;

    private Date fauUpdatetime;

    private String fauIsdelete;

    private String province;//省
    private String city;//市
    private String county;//区县
    private String fileUuid;//文件UUID
    private String geomText;//空间数据解析字符串

    private static final long serialVersionUID = 1L;

    public String getFauId() {
        return fauId;
    }

    public void setFauId(String fauId) {
        this.fauId = fauId;
    }

    public String getFauNumber() {
        return fauNumber;
    }

    public void setFauNumber(String fauNumber) {
        this.fauNumber = fauNumber;
    }

    public String getFauName() {
        return fauName;
    }

    public void setFauName(String fauName) {
        this.fauName = fauName;
    }

    public Integer getFauDirection() {
        return fauDirection;
    }

    public void setFauDirection(Integer fauDirection) {
        this.fauDirection = fauDirection;
    }

    public Date getFauCreatetime() {
        return fauCreatetime;
    }

    public void setFauCreatetime(Date fauCreatetime) {
        this.fauCreatetime = fauCreatetime;
    }

    public Date getFauUpdatetime() {
        return fauUpdatetime;
    }

    public void setFauUpdatetime(Date fauUpdatetime) {
        this.fauUpdatetime = fauUpdatetime;
    }

    public String getFauIsdelete() {
        return fauIsdelete;
    }

    public void setFauIsdelete(String fauIsdelete) {
        this.fauIsdelete = fauIsdelete;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        FaultageEntity other = (FaultageEntity) that;
        return (this.getFauId() == null ? other.getFauId() == null : this.getFauId().equals(other.getFauId()))
            && (this.getFauNumber() == null ? other.getFauNumber() == null : this.getFauNumber().equals(other.getFauNumber()))
            && (this.getFauName() == null ? other.getFauName() == null : this.getFauName().equals(other.getFauName()))
            && (this.getFauDirection() == null ? other.getFauDirection() == null : this.getFauDirection().equals(other.getFauDirection()))
            && (this.getFauCreatetime() == null ? other.getFauCreatetime() == null : this.getFauCreatetime().equals(other.getFauCreatetime()))
            && (this.getFauUpdatetime() == null ? other.getFauUpdatetime() == null : this.getFauUpdatetime().equals(other.getFauUpdatetime()))
            && (this.getFauIsdelete() == null ? other.getFauIsdelete() == null : this.getFauIsdelete().equals(other.getFauIsdelete()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getFauId() == null) ? 0 : getFauId().hashCode());
        result = prime * result + ((getFauNumber() == null) ? 0 : getFauNumber().hashCode());
        result = prime * result + ((getFauName() == null) ? 0 : getFauName().hashCode());
        result = prime * result + ((getFauDirection() == null) ? 0 : getFauDirection().hashCode());
        result = prime * result + ((getFauCreatetime() == null) ? 0 : getFauCreatetime().hashCode());
        result = prime * result + ((getFauUpdatetime() == null) ? 0 : getFauUpdatetime().hashCode());
        result = prime * result + ((getFauIsdelete() == null) ? 0 : getFauIsdelete().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", fauId=").append(fauId);
        sb.append(", fauNumber=").append(fauNumber);
        sb.append(", fauName=").append(fauName);
        sb.append(", fauDirection=").append(fauDirection);
        sb.append(", fauCreatetime=").append(fauCreatetime);
        sb.append(", fauUpdatetime=").append(fauUpdatetime);
        sb.append(", fauIsdelete=").append(fauIsdelete);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}